package com.cloud.clouduser.jpush;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Aurher: QiaoHang
 * @Description:
 * @Data: 2019/9/25 17:33
 * @Modified By:
 */
@RestController
@RequestMapping("/jpush")
public class JGpushController {

    @RequestMapping("/push.do")
    public String push() {
        Map<String, String> result = new HashMap<>();
        //调用ios的
        JGpush_IOS.jpushIOS(result);
        //然后调用安卓的
        JGpush_Android.jpushAndroid(result);
        return "SUCCESS!";
    }
}
